<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<title>封条管理及验证系统--留言回复</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<%@ include file="/comm.jsp"%>
<script>
	$(document).ready(function() {
		$("form *").autohelp("#autohelp");
	});
	$(document).ready(function(){
	  $('#ok').click(function() {
		$("#message_reply").submit();
	  }) 
	  $("#message_reply").validate();
	});
</script>

	<style type="text/css">
	<!--
	fieldset {
	    padding:10px;
	    margin:10px;
	    width:270px;
	    color:#333; 
	} 
	legend {
	    color:#06c;
	    font-weight:800; 
	} 
	-->
	</style>
<body leftmargin="0" topmargin="0" marginheight="0" >
  <s:form name ="formpage" action="message_reply" namespace="/">
	<s:hidden name="message.id" value="%{#request.message.id}"/>
  	<s:token />
			<div>
				<%@ include file="/messages.jsp"%>
				<fieldset>
					<legend>
						用户留言回复
					</legend>
					<table  width="600">
						<tr>
							<td width="15%" align="right">客户名称：
							</td>
							<td width="35%" >${message.userName}
							</td>
							<td width="15%" align="right">留言时间：
							</td>
							<td width="35%">${message.msgDate}
							</td>
						</tr>
						<tr>
							<td align="right" >
								留言内容：
							</td>
							<td colspan="3">
								<textarea name="msgContent" rows="5" cols="50" readonly="readonly">${message.msgContent}</textarea>
							</td>
						</tr>
						<tr>
							<td  align="right" >
								回复内容：
							</td>
							<td colspan="3">
								<textarea name="message.replyContent" rows="5" cols="50">${message.replyContent}</textarea>
							</td>
						</tr>
						<tr>
							<td colspan="4" align="center">
								<s:if test='"0"==message.replyFlag'>
								<input type="button" class="button" id="ok" name="ok"
									value=" 回 复 " />
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</s:if>
								<input type="button" class="button" id="resets" value=" 返 回 " onclick="javascript:history.go(-1)"/>
							</td>
						</tr>
					</table>
				</fieldset>
			</div>
		</s:form>
  
  </body>
</html>